package com.kk.command;

public class DvdOnCommand implements Command {

    private final DvdReceiver receiver;

    public DvdOnCommand() {
        this.receiver = new DvdReceiver();
    }

    @Override
    public void execute() {
        receiver.turnOn();
    }

    @Override
    public void undo() {
        receiver.turnOff();
    }
}
